import Router from 'koa-router';
import { OrderController } from '@/controllers/order.controller';
import authMiddleware from '@/middlewares/auth.middleware';

const router = new Router();

/**
 * @route POST /api/orders
 * @desc 创建订单
 * @access Private
 */
router.post('/', authMiddleware, OrderController.createOrder);

/**
 * @route GET /api/orders/:orderId
 * @desc 获取订单详情
 * @access Private
 */
router.get('/:orderId', authMiddleware, OrderController.getOrderDetail);

export default router; 